Titulo = {}
Titulo.__index = Titulo


function Titulo:create(x, y, img)
    local self = {}
    setmetatable(table, Titulo)
    self.mouse = false
    self.image = img 
    return self 
end

function Titulo:update(dt) 
    self:checkMouse()
end

function Titulo:checkMouse()
    self.mouse = ( self.x < love.mouse.getX() + 10  and self.x + 16 > love.mouse.getX() and self.y < love.mouse.getY() + 10  and self.y + 16 > love.mouse.getY() ) 
end

function Titulo:draw()

    if self.mouse then
        love.graphics.draw(drawable, x, y, r, sx, sy, ox, oy, kx, ky)
    else
        love.graphics.draw(drawable, x, y, r, sx, sy, ox, oy, kx, ky)
    end

end